Page({
  data: {
    
  },

  onLoad: function(options) {
    let type = options.type;
    if (type === 'FANS') {
      type = '粉丝';
    } else if (type === 'ATTENTION') {
      type = '关注';
    } else if (type === 'VISIT') {
      type = '看过我的';
    } else if (type === 'WATCH') {
      type = '我看过的';
    }
    this.setData({
      type:type
    });

    wx.setNavigationBarTitle({
      title: type,
    })

    wx.setNavigationBarColor({
      frontColor: '#000000',
      backgroundColor: '#FFFFFF',
    })
  },
})